<html>
    <head>

        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    </head>
    <body>
        <span style="float: right;font-size: 0.6em; font-family:arial;">Fecha: <?php echo date('d-m-Y') ?></span>
          <div style="width:200mm">
            <div style="width:200mm"> 
                <table border="0" class="tabla">
                    <tbody>
                        <tr>                                         
                            <td width="100%">                        
                                <table border="1"  class="tabla">
                                    <tr class="titulotabla">
                                        <th style="height: 5mm;font-size: 0.7em; font-family:arial;text-align: center"><b>Unidad Funcional</b></th>
                                        <th style="width: 50mm;height: 5mm;font-size: 0.7em; font-family:arial;text-align: center"><b>Propietario</b> </th>
                                        <th style="height: 5mm;font-size: 0.7em; font-family:arial;text-align: center"><b>Fecha</b></th>
                                        <th style="width: 28mm;height: 5mm;font-size: 0.7em; font-family:arial;text-align: center"><b>Valor</b></th>

                                    </tr>
                                    <tbody>
                                        <?php foreach ($unidadesfuncionales as $i => $u): ?>
                                             <tr>
                                                <td style="font-size: 0.6em; font-family:arial;height: 5mm;text-align: center;"><?php echo $u['calle']." ".$u['nro']." ( ".$u['codigo']." )" ?></td>
                                                <td style="width: 50mm ;font-size: 0.6em; font-family:arial;height: 4mm;text-align: center;"><?php echo $u['nom']." ".$u['ap'] ?></td>
                                                <td style="font-size: 0.6em; font-family:arial;margin:3mm;height: 4mm;text-align: center;"></td>
                                                <td style="font-size: 0.6em; font-family:arial;margin: 3mm;height: 4mm;text-align: center;"></td>
                                               
                                                
                                            </tr>
                                         <?php endforeach; ?>
                                    </tbody>
                                </table></td>
                        </tr><br>
                    <tr>
                        <td  style="height: 4em;font-size: 0.5em; font-family:arial;"><b>Total: </b><?php echo count($unidadesfuncionales);?> </td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </body>
</html>